<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script>
    /*
        1.检测举例
     */
    function isSortable(object) {
        return typeof object.sort === 'function'
    }

    console.log(isSortable({sort:true}))
</script>
</body>
</html>